import request from '@/utils/request.js'

export function login(data) {
  return request({
    url: '/login',
    method: 'post',
    data
  })
}
export function uploads(data) {
  return request({
    url: '/uploads',
    method: 'post',
    data
  })
}

// 生成短信验证码接口
export function sendsms(data) {
  return request({
    url: '/sendsms',
    method: 'post',
    data
  })
}
// 用户注册接口
export function register(data) {
  return request({
    url: '/register',
    method: 'post',
    data
  })
}
